#include <iostream>

#include "WeatherData.h"
#include "ForecastClient.h"
#include "StatisticsDisplay.h"
#include "ForecastDisplay.h"
#include "CurrentConditionDisplay.h"

int main(int argc, char **argv){
    WeatherData wd;
    ForecastClient fc1(new StatisticsDisplay());
    wd.registerObserver(&fc1);
    wd.setMeasurements(18,100,75);
    ForecastClient fc2(new ForecastDisplay());
    wd.registerObserver(&fc2);
    wd.setMeasurements(28,200,175);
    ForecastClient fc3(new CurrentConditionDisplay());
    wd.registerObserver(&fc3);
    wd.setMeasurements(8,21,751);
    wd.removeObserver(&fc2);
    wd.setMeasurements(83,21,71);

	getchar();
	return 0;
}